Image

AllCoding

AllCoding is a free learning coding for free.


Image

Learning HTML Code Basic HTML Tags

May 14, 2021 posted by Junior Kian Chong

Now lets learn some basic HTML Tags

The Bold Tag

For the bold tag we are going to use the letter “b.” You have a opening tag b and a closing tag b.

< b > < / b >

< b > this tag will make your text bold < / b >

So obviously the text above between the tags is just a placeholder, you will put whatever you want between the two tags.

The Italic Tag

Next is the italic tag. “I” stands for italic, so you are going to open it with the “i” and close it with the “/i.”

< i > < / i >

< i >This tag will show your text in italics< / i >

The Underline Tag

Next is the underline tag and we are going to use the letter “u.” So you will open with a “u” and close with a “/u.”

< u > < / u >

< u >This tag will underline your text< / u >

The Line Break Tag

Next is the line break tag. I use this a lot in my posts. This one is a little different as it does not have a closing tag. It puts a line break between text to help “break it up.” Which, makes it easier to read.

< br >

Using < br > will add a line breaking your text.

Note!! This tag does not need a closing tag. Just the one insertion or < br > will make the line break.

The Line Tag

Next we are going to do a line tag, and similar to the line break, we are not going to use a closing tag.

< hr >

Using < hr > will add a simple horizontal line in your post or page.

Note!! this tag does not need a closing tag. Just the one insertion of < hr > will make the line.

This helps to break up the text, I use this a lot in my posts.

The Center Tag

Now I am going to talk about the “center” tag and this is used to center you text on the page. And now we are back to opening and closing tags.

So you will use an opening “center” and a closing “/center.” You can use this for text, you can use it for images, you can use it for any content that you want to center on the page.

< center > < / center >

< center > Using the center tag wit center your text and images on the page < / center >

Wrap Up

So these really are some great HTML tags to get you started with. You can play around with these on your blog posts. The bold, underline, line break, italic and center tags. And these really are your basic HTML tags, so now you will be able to recognize them when you see them in your code.

Coding . HTML